/**
 * Some comments... 
 * 
 * 
 * @id GLE__MODULE_ID__
 * @title OSG Sample application
 * @height 500
 * @description This is a OSG Generated application 
 * @singleton
 * @thumbnail resources/thumbnail.jpg
 * @require opensocial-0.6
 * @require tabs
 * @require flash 
 * @include config.xml
 * 
 * @initFunction onInit
 *
 */

var $INSTANCE = {

	/* function is called on "onLoad" */
	onInit:function( data ) {	
		this.setFanaticoPage();
		
		//var tabs = new _IG_Tabs("_IG_Tabs");
		//tabs.addDynamicTab("index", this.setIndexTab );
		//tabs.addDynamicTab("fanático page", this.setFanaticoTab );
	},

	/* see self::saveTeam on fanatico.htm page */
	
	saveTeam:function( team ) {
		alert("Save the team:" + team);
		//console.debug(team);
	},
	
	/* see self::save on fanatico.htm page */
	save:function( team ) {
		alert("save!");
	},

	/* see self::hello on fanatico.htm page */
	hello:function() {
		alert("hello world");
	},
		
	// Brazilian's Soccer teams
	times:{
		atletico_mg:'Atlético Mineiro',
		atletico_pr:'Atlético Paranaense',
		bahia:'Bahia',
		botafogo:'Botafogo',
		corinthians:'Corinthians',
		coritiba:'Coritiba',
		cruzeiro:'Cruzeiro',
		figueirense:'Figueirense',
		flamengo:'Flamengo',
		fluminense:'Fluminense',
		goias:'Goiás',
		gremio:'Grêmio',
		internacional:'Internacional',
		juventude:'Juventude',
		nautico:'Náutico',
		palmeiras:'Palmeiras',
		parana:'Paraná',
		santos:'Santos',
		saopaulo:'São Paulo',
		sport:'Sport',
		vasco:'Vasco da Gama',
		vitoria:'Vitória'
	}
};